package com.alibaba.www.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * FeignRequestInterceptor注入到spring容器的话就会全局生效
 */
public class FeignRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("inner", "test");
    }
}
